package so.sao.shop.supplier.pojo.input.auth;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * <p>Version: supplier V1.1.0 </p>
 * <p>Title: AdminUserStatusInput</p>
 * <p>Description: 修改管理员子账号状态入参类</p>
 *
 * @author: taowang
 * @Date: Created in 2017/11/2 11:49
 */
public class AdminUserStatusInput {
    /**
     * 账号id
     */
    private Long userId;
    /**
     * 账号状态
     */
    @NotEmpty(message = "账户状态不能为空")
    private String userStatus;
    /**
     * 账号手机号码
     */
    @NotEmpty(message = "注册电话不能为空")
    @Pattern(regexp = "^1[34578]\\d{9}$", message = "请输入正确的手机号码")
    private String loginName;

    private Date updateAt;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(String userStatus) {
        this.userStatus = userStatus;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public Date getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(Date updateAt) {
        this.updateAt = updateAt;
    }
}

